using System;

namespace UnityEngine.Recorder
{
	public class AspectRatioHelper
	{
		public static float GetRealAR(EImageAspect aspectRatio)
		{
			switch (aspectRatio)
			{
			case EImageAspect.x16_9:
				return 1.77777779f;
			case EImageAspect.x16_10:
				return 1.6f;
			case EImageAspect.x19_10:
				return 1.9f;
			case EImageAspect.x5_4:
				return 1.25f;
			case EImageAspect.x4_3:
				return 1.33333337f;
			default:
				throw new ArgumentOutOfRangeException("aspectRatio", aspectRatio, null);
			}
		}
	}
}
